﻿EntityFrameworkCore\Add-Migration -c MySqlDbContext

EntityFrameworkCore\Update-Database  -c MySqlDbContext


core 3.1  iis server host   iis部署需要

https://dotnet.microsoft.com/download/dotnet-core/3.1

前端vue 表格https://www.iviewui.com/components/table

https://www.cnblogs.com/bluesummer/p/9415764.html
https://www.cnblogs.com/aixinge/p/9118337.html
consul
consul agent -dev
consul agent -server ui -bootstrap -client 0.0.0.0 -data-dir="D:\consul" -bind=101.37.168.17  -advertise-wan=101.37.168.17

consul agent -server -bootstrap-expect=1 -data-dir="D:\consul" -node=consul -bind=101.37.168.17 -ui -client=0.0.0.0

consul agent -server -bootstrap-expect 1 -node=MyconsulServer -bind=0.0.0.0 -advertise-wan=101.37.168.17 -data-dir="D:\consul" -dc="tx-dc1"


consul agent -server -bootstrap-expect 1 -node=localServer -data-dir="D:\consul"  -ui -client=0.0.0.0 -bind=0.0.0.0 -advertise-wan=101.37.168.17
consul agent -server -ui -bootstrap-expect=1 -config-dir=/etc/consul -data-dir=/tmp/consul -node=consul-1 -client=0.0.0.0 -bind=172.16.1.174 -datacenter=dc1
这个命令可以
consul agent -server -bootstrap-expect 1 -node=MyServer -data-dir="D:\consul"  -ui -client=0.0.0.0 -bind=0.0.0.0 -advertise-wan=101.37.168.17



查看各个server的情况

> consul members

查看目前全部的consul的角色状态：

> consul operator raft list-peers